package com.tuanzi.loan.vo.response.family;

import com.tuanzi.loan.core.vo.IdentityResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class LoanWholeSaleCommentSearchResponse extends IdentityResponse {

    private String ownername;

    private Integer sort;

    private Integer number;

    private Date uppertime;

    private Date downtime;

    private BigDecimal avgprice;

    private Integer approvenum;

    private String cooperate;

    private Long amount;

    private Date createtime;

    private Date createdate;

    private Date updatetime;

    private String editor;

    private Integer status;
    private Integer type;

    private String onlinedate;

    private String daikuan_amount;
    private String income;
    private String house_fund;
    private String social_insurance;
    private String has_car;
    private String has_estate;
    private String credit;
    private String has_weilidai;
    private String life_insurance;
    private Integer minage;
    private Integer maxage;
    private String social_insuranceduration;
    private String house_fundduration;
    private String comm_regoin;


    public Boolean isEnable(){
        return this.status == 1;
    }

    public Boolean isDisable(){
        return this.status == 0;
    }
}
